<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button id="ajaxPost" onclick="post()">发送</button>

<script src="static/jquery-3.2.1.min.js"></script>
<script>
    function post() {
        var saveData = {"id": "newcih", "orderNumber": 2323};
        $.ajax({
            type: "POST",
            url: "mapping/user",
            dataType: "json",
            contentType: "application/json",
            data: JSON.stringify(saveData),
            success: function (data) {
                console.log(data);
            }
        });
    }
</script>
</body>
</html>